export class storeproductreply {
  id: string = '';
  name = '';
  uid = ''
  oid = ''
  unique = ''
  storeProduct = { image: '', storeName: '' }
  replyType = ''
  productScore = ''
  serviceScore = ''
  comment = ''
  pics = []
  merchantReplyContent = ''
  merchantReplyTime = ''
  isDel = ''
  isReply = ''
  nickname = ''
  avatar = ''
  createTime = ''
  updateTime = ''
  sku = ''
  productId = ''
  constructor(data?: storeproductreply) {
    data && this.setProps(data);
  }

  setProps(data: storeproductreply) {
    (Object.keys(this) as Array<keyof Istoreproductreply>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Istoreproductreply = Omit<storeproductreply, 'setProps'>